package com.taijihuabao.modules.mapper;

import com.taijihuabao.modules.entity.ResendMessageEntity;

import java.util.List;

/**
 * 消息重发
 *
 * @author Tu
 * @date 2021/12/23 15:29
 */
public interface ResendMessageMapper {

    /**
     * 获取消息队列
     */
    List<ResendMessageEntity> selResendMessageList();

    /**
     * 根据消息id查询
     */
    ResendMessageEntity selResendMessageByMsgId(String messageId);

    /**
     * 消息重发
     *
     * @param resendMessageEntity
     */
    boolean resendMessage(ResendMessageEntity resendMessageEntity);

    /**
     * 逻辑删除
     *
     * @param messageId
     */
    void delete(String messageId);

}
